import tool from '@/commons/libraries/tool'

export default {
  jwt () {
    var jwt = tool.getLocalStorage('jwt')
    if (!tool.isEmpty(jwt)) {
      return jwt
    }
    return null
  },
  getServerUri (url) {
    return process.env.NODE_ENV === 'development' ? `/~${url}` : url
  },
  getWebsocketUri () {
    return process.env.NODE_ENV === 'development' ? `ws://127.0.0.1:9580/` : ''
  }
}
